<?php
// $insertstring - the string you want to insert
// $intostring - the string you want to insert it into
// $offset - the offset
function str_insert($insertstring, $intostring, $offset) {
	$part1 = substr($intostring, 0, $offset);
	$part2 = substr($intostring, $offset);
 
	$part1 = $part1 . $insertstring;
	$whole = $part1 . $part2;
	return $whole;
}
?>